<?php 
  require_once('../head/nav.php');
  $id = $result['id'];
  $studentid = $result['studentid'];
  $name = $result['name'];
  $sex = $result['sex'];
  $department = $result['department'];
  $xibie = $result['xibie'];
  $photo = $result['photo'];
  $intro = $result['intro']; 
?>
<h1 class="text-center">社团人员信息编辑</h1>
    <div class="col-sm-9 col-md-10">
      <form method="post" action="Admin.php?c=user&m=userupdate&id=<?php  echo $id;  ?>" enctype="multipart/form-data" class="form-horizontal">
        <input type="hidden" name="studentid" value="<?php echo $studentid;?>">
        <div class="form-group">
            <label for="studentid" class="col-md-2 col-xs-3 control-label">学号</label>
            <div class="col-md-10 col-xs-9">
              <input type="text" class="form-control" id="studentid" placeholder="学号" name="studentid" value="<?php echo $studentid;//echo &row['studentid'] ?>">
            </div>
        </div>
        <div class="form-group">
            <label for="name" class="col-md-2 col-xs-3 control-label">姓名</label>
            <div class="col-md-10 col-xs-9">
              <input type="text" class="form-control" id="name" placeholder="姓名" name="name" value="<?php echo $name;//echo &row['name'] ?>">
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 col-xs-3 control-label" for="sex">性别</label>
            <div class="col-md-10 col-xs-9">
              <label class="radio-inline">
                <input name="sex" type="radio" value="0" id="sex"
                <?php //echo $sex==0?'checked':'' ;
                if($sex==0){echo 'checked';} ?>>男
              </label>
              <label class="radio-inline">
                <input name="sex" type="radio" value="1"
                <?php //echo $sex==0?'checked':'' ;
                if($sex==1){echo 'checked';} ?>>女
              </label>
            </div>
        </div>
        <div class="form-group">
            <label for="department" class="col-md-2 col-xs-3 control-label">所属部门</label>
            <div class="col-md-10 col-xs-9">
              <input type="text" class="form-control" id="department" placeholder="所属部门" name="department" value="<?php echo $department;//echo &row['department'] ?>">
            </div>
        </div>
        <div class="form-group">
            <label for="xibie" class="col-md-2 col-xs-3 control-label">系别</label>
            <div class="col-md-10 col-xs-9">
              <input type="text" class="form-control" id="xibie" placeholder="系别" name="xibie" value="<?php echo $xibie;//echo &row['xibie'] ?>">
            </div>
        </div>
        <div class="form-group">
            <label for="photo" class="col-md-2 col-xs-3 control-label">照片</label>
            <div class="col-md-10 col-xs-9">
              <img src="../images/<?php echo $photo;?>" width=100 height=120>
              <input type="file" id="photo" name="photo">
            </div>
        </div>
        <div class="form-group">
            <label for="intro" class="col-md-2 col-xs-3 control-label">个人简历</label>
            <div class="col-md-10 col-xs-9">
              <input type="text" class="form-control" id="intro" placeholder="intro" name="intro"
              value="<?php echo $intro;//echo &row['xibie'] ?>">
            </div>
        </div>
        <div class="form-group">
              <label class="col-xs-3 col-md-2"></label>
              <div class="col-xs-9 col-md-10 col-md-offset-2 col-xs-offset-3">
                 <input class="btn btn-success" type="submit" value="重置" >
                 <input class="btn btn-danger" name="reset" value="取消" >
              </div>
        </div>
      </form>
    </div>

<?php 
  require_once('../head/footer.php'); 
?>
